<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns:h="http://java.sun.com/jsf/html"
                xmlns:f="http://java.sun.com/jsf/core"
                xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns:p="http://primefaces.org/ui"
                xmlns:pe="http://primefaces.org/ui/extensions"
                template="../../template/tagedu.xhtml">

    <ui:define name="title">
        <title><h:outputText value="Planejamento - TAG"/></title>
    </ui:define>

    <ui:define name="content">
        <h:outputText styleClass="title" value="Planejamento"/>
        
        <h:form id="editWorksForm">
            <p:messages id="message" showDetail="true" />
            <pe:ckEditor id="editor" value="#{createPDFMB.text}" checkDirtyInterval="0" width="600">
                <p:ajax event="save"/>  
            </pe:ckEditor>
            <p:commandButton id="fade" value="Gerar" action="#{createPDFMB.generate()}" ajax="false" onclick="this.form.target='_blank'"/>
            <pe:tooltip for="fade" value="Fade effect is used by default" showEffect="fadeIn" hideEffect="fadeIn"/>
        </h:form>
    </ui:define>
    
    <ui:define name="ajaxLoader"></ui:define>
</ui:composition>
